package employee;

public class Employee implements Comparable<Employee>{
	int id;
	private String address;
	private String gender;
	private String name;
	public String getaddress(){
		return address;
	}
	public void setName(String name){
		this.name = name;

	}
	public Employee(int id,String address,String gender,String name){
		this.id = id;
		this.address = address;
	   this.gender = gender;
	   this.name = name;
	}
public String toString(){
	return this.address;
		
	}
	public int compareTo(Employee o){
		return address.compareTo(o.getaddress());
	}
	}
	


